﻿<%@ Page Title="" Language="C#" MasterPageFile="MemberMaster.Master" AutoEventWireup="true"
    CodeBehind="Answer.aspx.cs" Inherits="TopWinCMS.WebUI.Views.TopWinCMS6.Member.Answer" %>

<%@ Register Src="~/UserControl/UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <table style="table-layout: fixed; border-collapse: collapse" cellspacing="0" cellpadding="3"
        width="98%" align="center" border="0">
        <tbody>
            <tr>
                <td width="8%" height="32" align="center" background="../Images/demo_53.gif">
                    &nbsp;
                </td>
                <td width="92%" align="center" background="../Images/demo_53.gif">
                    <strong>我回答的问题
                        
                    </strong>
                </td>
            </tr>
            <tr>
                <td colspan="2" valign="top" align="center">
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                        <ProgressTemplate>
                            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="ID" onrowediting="GV_List_RowEditing" 
                                onrowupdating="GV_List_RowUpdating" 
                                onrowcancelingedit="GV_List_RowCancelingEdit">
                                <HeaderStyle BackColor="Black" ForeColor="White" />
                                <Columns>
                                    <asp:HyperLinkField HeaderText="问题" DataTextField="title">
                                        <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Left" />
                                        <ItemStyle Width="200px" />
                                    </asp:HyperLinkField>   
                                
                                    
                                     <asp:TemplateField HeaderText="回答">
                                         <ItemStyle HorizontalAlign="Left" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <%# Answer_Content(Eval("Content"))%>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="98%" Rows="5"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    
                                      <asp:BoundField DataField="UpdateTime" HeaderText="时间" DataFormatString="{0:yy-MM-dd HH:mm:ss}" ReadOnly="true" HtmlEncode="False">
                                        <ItemStyle Width="120px" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:CommandField ShowEditButton="True">
                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                    </asp:CommandField>
                                </Columns>
                                <HeaderStyle Font-Bold="True" Font-Size="12px" Height="24px" Wrap="True" />
                                <RowStyle Height="24px" />
                            </asp:GridView>
                            <asp:Label ID="LB_NoShow" runat="server"></asp:Label>&nbsp;
                            <TopWinCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                                SubmitButtonClass="btn">
                            </TopWinCMS:PageNavigation>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</asp:Content>
